package com.joker.airoleplayplatformback.domain.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 语音处理事件
 * @author feixiang.li
 * @since 2025-09-27
 */
@Getter
public class VoiceProcessingEvent extends ApplicationEvent {
    
    /**
     * WebSocket会话ID
     */
    private final String websocketSessionId;
    
    /**
     * 音频文件路径
     */
    private final String audioFilePath;
    
    /**
     * 事件时间戳
     */
    private final long eventTimestamp;
    
    public VoiceProcessingEvent(Object source, String websocketSessionId, String audioFilePath) {
        super(source);
        this.websocketSessionId = websocketSessionId;
        this.audioFilePath = audioFilePath;
        this.eventTimestamp = System.currentTimeMillis();
    }
}
